package com.jiangli.entity.doubao;

import lombok.Data;
import java.util.List;

/**
 * 豆包API流式响应解析实体类
 */
@Data
public class DoubaoStreamResponse {
    private String id;
    private String object;
    private long created;
    private String model;
    private List<Choice> choices;

    @Data
    public static class Choice {
        private int index;
        private Delta delta;
        // 结束标识：null表示未结束，"stop"表示生成结束
        private String finish_reason;

        @Data
        public static class Delta {
            // 生成的文本片段
            private String content;
        }
    }
}